/*
 * Copyright 2010 Michael Nitsche
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package de.mnit.basis.swt.element.steuer.rollbar.gruppe.bild.deko;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

import de.mnit.basis.swt.element.S_SWT_Komponente;
import de.mnit.basis.swt.element.menue.SWT_MenueLeiste;
import de.mnit.basis.swt.timer.A_SWT_Timer;
import de.mnit.basis.sys.event.S_Zuhoerer;

/**
 * @author Michael Nitsche
 * 12.02.2010	Erstellt
 */
public interface S_Fenster<T extends S_Fenster<?>> extends S_SWT_Komponente<T, Shell> {

	void oeffnen();
	void oeffnen(Shell parent);
	void oeffnen(Shell parent, S_Zuhoerer<Object> bereit);

	void schliessen();

	Thread startExtern(Runnable r);
	void startSync(Runnable r);
	void startAsync(Runnable r);
	void startTimer(A_SWT_Timer timer);

	void sTitel(String titel);
	void sBild(Object datei);
	void sZentriert();

	SWT_MenueLeiste nMenue_Leiste();

	void start();
	void start(S_Zuhoerer<Object> bereit);

	void erzeugeSWT(Display display, Shell parent);

}